STEP 1: The functions and some of the starting code for this program are provided for you. Let's check them out!

A helper function is a function that helps complete a specific task rather than control the main flow of code.

  • The helper functions are calculate_damage(), fireball(), rock_smash(), and cast_spell().
  • At the moment these functions aren't totally complete. We will be finishing them in this lesson!
  • Look at the MAIN CODE section. Click Run to see the stage and Submit and Next to move on.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)